import request from '@/utils/request'

// 根据类型获取文章
export const getAllByType = (type) => {
    return request({
      url: '/study/getAll/'+type,
      method: 'get',
    
    })
  }


export const getTitleById = (id)=>{
    return request({
        url:'/study/getTitle/'+id,
        method:'get',

    })
}

export const addTitle=(form)=>{
    return request({
        url:'/study/add',
        method:'post',
        data: form
    })
}